<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% 
	String context = request.getContextPath(); 
	String basePath = request.getServerName() + ":" + request.getServerPort() + context + "/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>弹窗</title>
		<link rel="stylesheet" type="text/css" href="<%=context%>/microcore/commoncss/basics.css"/>
		<style stype="text/css">
			body{background:#BCD68D;line-height: 40px;padding:0 30px}
		</style>
	</head>
	<body>
		<input type="button" value="弹窗" id="dialog1"  />
	</body>
	<script src="<%=context%>/microcore/jquery-2.1.0.min.js"></script>
	<script src="<%=context%>/microcore/plugins/dialog.js"></script>
	<script src="<%=context%>/microcore/plugins/drag.js"></script>
	<script src="<%=context%>/microcore/commonjs/basics.js"></script>
	<script>
		$(function(){
			$("#dialog1").click(function(){
				$.dialog.open({
					url:"<%=context%>/html/alert.jsp",
					buttons:[
						{text:"确定",click:function(dialog,id){
							$.dialog.open({
								url:"../demo/login.html",
								width:400,
								height:300,
								buttons:[
									{text:"确定",click:function(dialog,id){
										alert(dialog.paras(id).num());
									}},
									{text:"取消",click:function(dialog,id){
										dialog.close(id);
									}}
								]
							});
						}},
						{text:"取消",click:function(dialog,id){
							dialog.close(id);
						}}
					]
				});
			});
		})
	</script>
</html>
